package com.lizhi.yun.system.rsz.controller;/**
 * @program: hbsf_yun
 * @name RszPatientController
 * @description:
 * @author: lizhi
 * @create: 2021-11-03 14:26
 */

import com.lizhi.common.yun.entity.ListResponseResult;
import com.lizhi.yun.system.rsz.handler.RszPatientHandler;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 *@program: hbsf_yun
 *@name RszPatientController
 *@description:
 *@author: lizhi
 *@create: 2021-11-03 14:26
 */
@RestController
@RequestMapping(path = "/api/rsz/yun/patient")
@Api("康复评估")
public class RszPatientController {

    @Resource
    private RszPatientHandler rszPatientHandler;

    @ApiOperation("查询所有需要做评估的患者")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "map", value = "map传参", required = false, dataType = "Map", paramType = "query"),
            @ApiImplicitParam(name = "pageIndex", value = "当前页", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "pageSize", value = "展示条数", required = true, dataType = "String", paramType = "query")
    })
    @PostMapping(path = "/doMain")
    public ListResponseResult doMain(@RequestParam Map<String, Object> map, HttpServletRequest request) {
        return rszPatientHandler.doMain(map, request);
    }
}
